<!DOCTYPE html>
<html lang="zh">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <!-- <script src="./vue.js"></script> -->
  <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
  <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  <style>
    body {
      background-color: #ccc;
    }

    #app {
      width: 800px;
      margin: 20px auto;
      background-color: #fff;
      border: 4px solid blueviolet;
      border-radius: 1em;
      box-shadow: 3px 3px 3px rgba(0, 0, 0, .5);
      padding: 1em 2em 2em;
    }

    h3 {
      text-align: center;
    }

    .title {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border: 1px solid #ccc;
      padding: 0 1em;
    }

    .title h4 {
      line-height: 2;
      margin: 0;
    }

    .container {
      border: 1px solid #ccc;
      padding: 0 1em;
    }

    .btn {
      /* 鼠标改成手的形状 */
      cursor: pointer;
    }
    input {
      width: 80px;
    }
  </style>
</head>

<body>
  <div id="app">
    <h3>案例：购物车结算</h3>
    <div>
      <p>手机： 价格 <input id="phonePrice" value="2989" /> 数量 <input id="phoneNum" value="1"/> 小计 <label id="phoneMoney">2989</label>元</p>
      <p>电脑： 价格 <input id="computerPrice" value="6000"/> 数量 <input id="computerNum" value="2"/> 小计 <label id="phoneComputer">12000</label>元</p>
      <p title="托运及保价费">运费: <input id="freight" value="10"/>元</p>
      <p>共计：<label id="totalMoney">14999</label>元</p>
      <p>优惠：<label id="discountMoney">200</label>元</p>
      <p>应付：<label id="realMoney">14799</label>元</p>
    </div>
    <hr>
    <div>
      <h4>优惠说明</h4>
      <p>如果两样商品的金额（不含运费）合计超过了5000元，则可减免100元</p>
      <p>如果两样商品的金额（不含运费）合计超过了8000元，则可减免200元</p>
      <h4>要求</h4>
      <p>在如上5个输入框中修改数值时，各项统计结果要实时更新</p>
    </div>
  </div>
  <script>

  </script>

</body>
</html>